Current Location: Home> Function Categories> timezone_abbreviations_list

timezone_abbreviations_list

Alias ​​for DateTimeZone::listAbbreviations - Returns an associative array containing dst (daylight saving time), time difference, and time zone information.
Name:timezone_abbreviations_list
Category:Date and time
Programming Language:php
One-line Description:Returns an associative array containing daylight saving time, offset, and time zone names.

Definition and usage

timezone_abbreviations_list() returns an associative array containing daylight saving time, offset, and time zone names.

Example

Output the "act" time zone's daylight saving time (dst), offset, and time zone names:

 <?php
$tzlist = timezone_abbreviations_list ( ) ;
print_r ( $tzlist [ "act" ] ) ;
?>

Try it yourself

grammar

 timezone_abbreviations_list ( ) ;
Similar Functions